package com.farm.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.farm.common.ResponseResult;
import com.farm.pojo.Policy;
import com.farm.mapper.PolicyMapper;
import com.farm.service.PolicyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 存放政策文件 服务实现类
 * </p>
 *
 * @author farm
 * @since 2023-11-14
 */
@Service
public class PolicyServiceImpl extends ServiceImpl<PolicyMapper, Policy> implements PolicyService {

    @Override
    public ResponseResult getPolicyList() {
        return ResponseResult.okResult(list(Wrappers.<Policy>lambdaQuery().eq(Policy::getState,1)));
    }
}
